﻿@model IEnumerable<CmsQuickTaskPanelModel>

@{
    int count = Model.Count();
    int index = 0;
    int maxIndex = 2;
}  

<table class="b-quick-tasks" cellspacing="0" cellpadding="0">    
    @foreach (var item in Model)
    {
        if(index == 0)
        {
            @:<tr>
        }        
        <td>
            <a href="@item.TaskActionUrl">
            	<img src="@item.TaskLogo" alt="@item.TaskName" />
            	@item.TaskName            	
        	</a>
        </td>        
        if (index == maxIndex)
        {
            @:</tr>        
            index = 0;
        }
        else
        {
            index++;    
        }
    }
</table>